package com.guyaogg.gulimall.member.feign;

import com.guyaogg.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 这是一个声明式的远程调用
 * @author 顾遥
 */
@FeignClient("gulimall-coupon")
public interface CouponFeignService {

    /**
     * 测试远程调用
     * @return 方法返回
     */
    @RequestMapping("/coupon/coupon/member/coupons")
    R memberCoupons();
}
